package com.tempjob.common.model;

import lombok.Data;

import java.util.List;

/**
 * @author hui
 * @Date 2024/1/5 22:13
 **/
@Data
public class ReGeo {

    private Integer status;
    private Regeocode regeocode;
    private String info;
    private String infocode;

    @Data
    public static class Regeocode {

        private AddressComponent addressComponent;
        private String formatted_address;
    }

    @Data
    public static class AddressComponent {

        private String city;
        private String province;
        private String adcode;
        private String district;
        private String towncode;
        private StreetNumber streetNumber;
        private String country;
        private String township;
        private List<BusinessAreas> businessAreas;
        private Building building;
        private Neighborhood neighborhood;
        private String citycode;
    }

    @Data
    public static class Neighborhood {
        private String name;
        private String type;
    }

    @Data
    public static class StreetNumber {

        private String number;
        private String location;
        private String direction;
        private String distance;
        private String street;
    }

    @Data
    public static class BusinessAreas {

        private String location;
        private String name;
        private String id;
    }

    @Data
    public static class Building {

        private String name;
        private String type;
    }





}
